// DeliveryFeeConfigMapper.java
package ltd.newbee.mall.dao;

import ltd.newbee.mall.entity.DeliveryFeeConfig;
import org.apache.ibatis.annotations.Param;

public interface DeliveryFeeConfigMapper {

    /**
     * 获取有效的快递费配置
     */
    DeliveryFeeConfig selectEnabledConfig();

    /**
     * 根据ID查询
     */
    DeliveryFeeConfig selectByPrimaryKey(Long id);

    /**
     * 插入配置
     */
    int insertSelective(DeliveryFeeConfig record);

    /**
     * 更新配置
     */
    int updateByPrimaryKeySelective(DeliveryFeeConfig record);
}
